{extend name="admin/b2c/base" /}
{block name="resources"/}
<link href = "ADMIN_CSS/express/transportation_edit.css" rel="stylesheet" />
{/block}
{block name="main"}
<div class="mod-form t20" style="margin-top: 40px;">
	<div class="con style0page">
		<ul class="list-ul">
			<li class="list-li">
				<div class='table-div'>
					<table>
						<tr>
							<td colspan='2' class='back-f5f5f5'>
								<div class='table-title-font'><span>运费信息</span></div>
							</td>
						</tr>
						<tr>
							<td class='table-1td'>
								<li class="list-li">
									<div class="float-l w130">
										<span class="star">*</span><label>模板名称:</label>
									</div>
								</li>
							</td>
							<td>
								<li class="list-li">
									<div class="float-l">
										<input id="TextName" type="text" name="TextName" style="width:220px;margin:0px;" class="w230">
									</div>
									<div class="float-l">
										<span class="prompt"></span>
									</div>
								</li>
							</td>
						</tr>
						<tr>
							<td class='table-1td'>
								<li class="list-li">
									<div class="float-l w130">
										<span class="star">*</span>
										<label>运费:</label>
									</div>
								</li>
							</td>
							<td>
								<li class="list-li">
									<div class="float-l" id="fee_box">
										<div id="PressPaper" style="border:1px solid #e6e6e6;width:713px;padding:10px;">
											<span>默认运费：</span>
											<input type="text" id="NumberStartStandard" name="StartStandard0" value="1" class="w100">
											<span id="defaultUnit">件</span>
											<span class="l15">费用：</span>
											<input type="text" id="NumberStartFee" name="StartFee0" class="w100">
											<span id="defaultMoney">元</span>
											
											<span class="l15">每增加：</span>
											<input type="text" id="NumberAddStandard" name="StartAddStandard0" class="w100">
											<span id="defaultAddUnit">件</span>
											<span class="l15">费用增加：</span>
											<input type="text" id="NumberAddFee" name="StartAddFee0" class="w100">
											<span id="defaultAddMoney">元</span>
											
											<a class="l15"style="float:right; cursor:pointerheight: 32px;line-height: 32px;" onclick="deleteThisParentBox(this);">删除</a>
										</div>
										<div class="mod-table-main t10">
											<div class="con style03" id="tbl-except" style="display: none">
												<table style="width: 735px;" id="myPressPaperTable">
													<colgroup>
														<col style="width: 34%;">
														<col style="width: 15%;">
														<col style="width: 15%;">
														<col style="width: 15%;">
														<col style="width: 15%;">
														<col style="width: 16%;">
													</colgroup>
													<tbody>
														<tr>
															<td class="td_bg">运送到</td>
															<td class="td_bg"><span id="initialWorkpiece"></span></td>
															<td class="td_bg"><span id="collectFees"></span></td>
															<td class="td_bg"><span id="Continued"></span></td>
															<td class="td_bg"><span id="Renew"></span></td>
															<td class="td_bg">操作</td>
														</tr>
													</tbody>
												</table>
											</div>
										</div>
										<div class="t10" style="margin:10px 0;">
											<a class="btn-gradient-blue" id="J_AddRule" href="javascript:InsertRow()">为指定地区城市设置运费</a>
										</div>
									</div>
									<br/>
									<div class="float-l" style="margin-left:6px;">
										<span class="prompt" id="spMessage"></span>
									</div>
								</li>
							</td>
						</tr>
					</table>
				</div>
			</li>
		</ul>
		<div class="l130 t20 b20" style="margin-bottom:10px;margin-top:30px;text-align:center;">
			<button type="button" onclick="javascript:TransportationAdd();" class="edit_button">保存</button>
			<button type="submit" id="realSub" style="display: none;">保存</button>
		</div>
	</div>
	<div class="fill" style="height:280px;display:none;"></div>
</div>
<div id="bg"></div>
<div id="selectItem" style="display:none;top:320px;">
	<div class="tit bgc_ccc move">
		<h2 class="left" style="margin:-10px 0;">请选择城市</h2>
		<span class="pointer right" onclick="openBg(0,event);openSelect(0);">[取消]</span>
		<span class="pointer right" onclick="makeSure();">[确定]</span>
		<input type="hidden" id="hidMakeSure">
		<input type="hidden" id="hidArea">
		<input type="hidden" id="hidAreaName">
	</div>
	<div class="cls"></div>
	<div class="cont">
		<div class="selectSub dialog-areas">
			<ul id="J_CityList">
				{foreach name="address_list" item="area" key="k"}
				<li>
					<div class=" dcity clearfix">
						<div class="ecity gcity">
							<span class="group-label">
								<input id="J_Group_{$k}" name="J_Group_{$k}" class="J_Group" type="checkbox" value="{foreach name="area.province_list" item="province"}{$province.province_id},{/foreach}">
								<label for="J_Group_{$k}" style="font-weight:100;">{$area.area_name}</label>
							</span>
						</div>
						<div class="province-list">
							{foreach name="area.province_list" item="province" key="i" }
							<div class="ecity">
								<span class="gareas">
									<input name="J_Group_{$k}_Province" id="J_Province_{$province.province_id}" class="J_Province" type="checkbox" lang="{$province.province_name}" value="{$province.province_id}">
									<label for="J_Province_{$province.province_id}" style="font-weight:100;">{$province.province_name}</label>
									<span class="check_num"></span>
									<img class="trigger" src="ADMIN_IMG/T1XZCWXd8iXXXXXXXX-8-8.gif">
								</span>
								<div class="citys" id="citys_{$province.province_id}">
									{foreach name="province.city_list" item="city" key="i" }
									<span class="areas" style="font-weight:100">
										<input lang="{$city.city_name}" value="{$city.city_id}" data-value_id="{$city.province_id}:100{$city.city_id}"id="J_City_100{$city.city_id}" name="J_City_100{$city.city_id}" class="J_City" type="checkbox">
										<label for="J_City_100{$city.city_id}" style="font-weight:100;">{$city.city_name}</label>
									</span>
									{/foreach}
									<p style="text-align:right;"><input class="close_button" type="button" value="关闭"></p>
								</div>
							</div>
							{/foreach}
						</div>
					</div>
				</li>
				{/foreach}
			</ul>
		</div>
	</div>
</div>
{include file="admin/b2c/openDialog" /}
<script src="ADMIN_JS/express/transportation_add.js"></script>
{/block} 